package com.billing.model.entity;

import java.text.SimpleDateFormat;

/**
 * @author Administrator
 *
 */
public class Message {
	private String id;
	private String contenttypeid;// 内容类型ID
	private String title;// 标题
	private String author;// 作者
	private String summary;// 内容
	private String source;// 出处
	private String introduction;// 摘要
	private String linkaddress;// 链接
	private Long addeddate;// 录入日期
	private String addeddateString;// 录入日期字符串格式
	private Integer releasestate;// 发布状态
	private Integer status;// 审核状态
	private Integer userid;// 添加人---责任编辑人姓名
	private int organizationId;// 归属商户id
	private String starttime;// 有效起始时间
	private String endtime;// 有效结束时间
	private Integer existencestatus;// 状态 1:正常 2:删除
	private String auditor;// 审核人(用户ID)
	private String audittime;// 审核时间
	private String auditopinion;// 上级审核意见

	private String reviewcontent;// 评论内容
	private Long reviewtime;// 评论时间
	private String reviewtimeString;// 评论时间 -- 时间戳
	private String commentator;// 评论人
	private Integer readornot;// 消息状态--0:已读；1：未读
	private Integer attendance;// 考勤状态--0:正常；1：缺卡；2：补卡

	private Integer termstate;// 别名-0：已过期；1：未到期
	private String uname;// 别名-用户名

	private ContentType cont = new ContentType();
	private TUser user = new TUser();
	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	public TUser getUser() {
		return user;
	}

	public void setUser(TUser user) {
		this.user = user;
	}

	public Integer getExistencestatus() {
		return existencestatus;
	}

	public void setExistencestatus(Integer existencestatus) {
		this.existencestatus = existencestatus;
	}

	public String getAuditor() {
		return auditor;
	}

	public void setAuditor(String auditor) {
		this.auditor = auditor;
	}

	public String getAudittime() {
		return audittime;
	}

	public void setAudittime(String audittime) {
		this.audittime = audittime;
	}

	public String getAuditopinion() {
		return auditopinion;
	}

	public void setAuditopinion(String auditopinion) {
		this.auditopinion = auditopinion;
	}

	public ContentType getCont() {
		return cont;
	}

	public void setCont(ContentType cont) {
		this.cont = cont;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getContenttypeid() {
		return contenttypeid;
	}

	public void setContenttypeid(String contenttypeid) {
		this.contenttypeid = contenttypeid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getLinkaddress() {
		return linkaddress;
	}

	public void setLinkaddress(String linkaddress) {
		this.linkaddress = linkaddress;
	}

	/*
	 * public String getAddeddate() { return addeddate; }
	 * 
	 * public void setAddeddate(String addeddate) { this.addeddate = addeddate;
	 * }
	 */

	public Integer getReleasestate() {
		return releasestate;
	}

	public Long getAddeddate() {
		return addeddate;
	}

	public void setAddeddate(Long addeddate) {
		this.addeddate = addeddate;
		if (addeddate != null && !addeddate.equals("")) {
			this.addeddateString = format.format(addeddate);
		}
	}

	public String getAddeddateString() {
		return addeddateString;
	}

	public void setAddeddateString(String addeddateString) {
		this.addeddateString = addeddateString;
	}

	public void setReleasestate(Integer releasestate) {
		this.releasestate = releasestate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public int getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(int organizationId) {
		this.organizationId = organizationId;
	}

	public String getStarttime() {
		return starttime;
	}

	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}

	public String getEndtime() {
		return endtime;
	}

	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}

	public Integer getTermstate() {
		return termstate;
	}

	public void setTermstate(Integer termstate) {
		this.termstate = termstate;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getReviewcontent() {
		return reviewcontent;
	}

	public void setReviewcontent(String reviewcontent) {
		this.reviewcontent = reviewcontent;
	}

	public Long getReviewtime() {
		return reviewtime;
	}

	public void setReviewtime(Long reviewtime) {
		this.reviewtime = reviewtime;
		if (reviewtime != null && !reviewtime.equals("")) {
			this.reviewtimeString = format.format(reviewtime);
		}
	}

	public String getReviewtimeString() {
		return reviewtimeString;
	}

	public void setReviewtimeString(String reviewtimeString) {
		this.reviewtimeString = reviewtimeString;
	}

	public String getCommentator() {
		return commentator;
	}

	public void setCommentator(String commentator) {
		this.commentator = commentator;
	}

	public Integer getReadornot() {
		return readornot;
	}

	public void setReadornot(Integer readornot) {
		this.readornot = readornot;
	}

	public Integer getAttendance() {
		return attendance;
	}

	public void setAttendance(Integer attendance) {
		this.attendance = attendance;
	}

}
